﻿package org.cshoo.common.control
{
	import com.adobe.cairngorm.control.FrontController;
	
	import org.cshoo.sys.event.LoginEvent;
	import org.cshoo.sys.event.LogoutEvent;
	import org.cshoo.sys.event.AddUserEvent;
	import org.cshoo.sys.event.FindUserListEvent;
	import org.cshoo.sys.event.FindMenuListEvent;
	import org.cshoo.sys.event.FindMenuListByParentEvent;
	import org.cshoo.sys.event.FindRootMenuListEvent;
	import org.cshoo.sys.event.AddMenuEvent;
	import org.cshoo.sys.event.UpdateMenuEvent;
	import org.cshoo.sys.event.DeleteMenuEvent;
	import org.cshoo.sys.event.AddDictionaryEvent;
	import org.cshoo.sys.event.FindDictionaryListEvent;
	import org.cshoo.sys.event.DeleteDictionaryEvent;
	import org.cshoo.sys.event.UpdateDictionaryEvent;
	import org.cshoo.sys.event.AddParameterEvent;
	import org.cshoo.sys.event.FindParameterListEvent;
	import org.cshoo.sys.event.DeleteParameterEvent;
	import org.cshoo.sys.event.UpdateParameterEvent;
	import org.cshoo.sys.event.FindRootOrganizationListEvent;
	import org.cshoo.sys.event.AddOrganizationEvent;
	import org.cshoo.sys.event.UpdateOrganizationEvent;
	import org.cshoo.sys.event.DeleteOrganizationEvent;
	import org.cshoo.sys.command.LoginCommand;
	import org.cshoo.sys.command.LogoutCommand;
	import org.cshoo.sys.command.AddUserCommand;
	import org.cshoo.sys.command.FindUserListCommand;
	import org.cshoo.sys.command.FindMenuListCommand;
	import org.cshoo.sys.command.FindRootMenuListCommand;
	import org.cshoo.sys.command.FindMenuListByParentCommand;
	import org.cshoo.sys.command.AddDictionaryCommand
	import org.cshoo.sys.command.FindDictionaryListCommand;
	import org.cshoo.sys.command.DeleteDictionaryCommand;
	import org.cshoo.sys.command.UpdateDictionaryCommand;
	import org.cshoo.sys.command.AddParameterCommand;
	import org.cshoo.sys.command.FindParameterListCommand;
	import org.cshoo.sys.command.DeleteParameterCommand;
	import org.cshoo.sys.command.UpdateParameterCommand;
	import org.cshoo.sys.command.AddMenuCommand;
	import org.cshoo.sys.command.UpdateMenuCommand;
	import org.cshoo.sys.command.DeleteMenuCommand;
	import org.cshoo.sys.command.FindRootOrganizationListCommand;
	import org.cshoo.sys.command.AddOrganizationCommand;
	import org.cshoo.sys.command.UpdateOrganizationCommand;
	import org.cshoo.sys.command.DeleteOrganizationCommand;
	
	public class FController extends FrontController
	{
		public function FController()
		{
			this.addCommand(LoginEvent.EVENT_LOGIN,LoginCommand);
			this.addCommand(LogoutEvent.EVENT_LOGOUT,LogoutCommand);
			
			this.addCommand(AddUserEvent.EVENT_ADDUSER,AddUserCommand);
			this.addCommand(FindUserListEvent.EVENT_FINDUSERLIST,FindUserListCommand);
			
			this.addCommand(AddMenuEvent.EVENT_ADDMENU,AddMenuCommand);
			this.addCommand(UpdateMenuEvent.EVENT_UPDATEMENU,UpdateMenuCommand);
			this.addCommand(DeleteMenuEvent.EVENT_DELETEMENU,DeleteMenuCommand);
			this.addCommand(FindMenuListEvent.EVENT_FINDMENULIST,FindMenuListCommand);
			this.addCommand(FindRootMenuListEvent.EVENT_FINDROOTMENULIST,FindRootMenuListCommand);
			this.addCommand(FindMenuListByParentEvent.EVENT_FINDMENULISTBYPARENT,FindMenuListByParentCommand);
			
			this.addCommand(AddDictionaryEvent.EVENT_ADDDICTIONARY,AddDictionaryCommand);
			this.addCommand(FindDictionaryListEvent.EVENT_FINDDICTIONARYLIST,FindDictionaryListCommand);
			this.addCommand(DeleteDictionaryEvent.EVENT_DELETEDICTIONARY,DeleteDictionaryCommand);
			this.addCommand(UpdateDictionaryEvent.EVENT_UPDATEDICTIONARY,UpdateDictionaryCommand);
			
			this.addCommand(AddParameterEvent.EVENT_ADDPARAMETER,AddParameterCommand);
			this.addCommand(FindParameterListEvent.EVENT_FINDPARAMETERLIST,FindParameterListCommand);
			this.addCommand(DeleteParameterEvent.EVENT_DELETEPARAMETER,DeleteParameterCommand);
			this.addCommand(UpdateParameterEvent.EVENT_UPDATEPARAMETER,UpdateParameterCommand);
			
			this.addCommand(FindRootOrganizationListEvent.EVENT_FINDROOTORGANIZATIONLIST,FindRootOrganizationListCommand);
			this.addCommand(AddOrganizationEvent.EVENT_ADDORGANIZATION,AddOrganizationCommand);
			this.addCommand(UpdateOrganizationEvent.EVENT_UPDATEORGANIZATION,UpdateOrganizationCommand);
			this.addCommand(DeleteOrganizationEvent.EVENT_DELETEORGANIZATION,DeleteOrganizationCommand);
		}
	}
}